<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
    <div th:fragment="top" style="width: 100%;display: flex;justify-content: center">
        <ul class="nav nav-pills" style="width: 80%;display: flex;justify-content: space-evenly" th:if="${session.userSession.roleid==1}">
            <li role="presentation" class="active"><a href="#">首页</a></li>
            <li role="presentation"><a href="/user/toUser">用户管理</a></li>
            <li role="presentation"><a href="/category/list">分类管理</a></li>
            <li role="presentation"><a href="/book/list">图书管理</a></li>
            <li role="presentation"><a href="/borrow/list">借阅管理</a></li>
        </ul>
        <ul class="nav nav-pills" style="width: 80%;display: flex;justify-content: space-evenly" th:if="${session.userSession.roleid==2}">
            <li role="presentation" class="active"><a href="#">首页</a></li>
            <li role="presentation"><a href="/borrow/list">借阅管理</a></li>
        </ul>
    </div>
</body>
</html>